<?php

namespace Controller\Single;

class Single extends Base {

	public function actionIndex() {
		$this->setCurrentMenuKey('Single');
		$this->setLevelCategories();
		$this->setCategoryInfo();
		$pager = new \Lib\Core\Pager();
		$pager->currentPage = $this->getInt('page');
		$articleList = \Business\Article::instance()->findArticle($pager, false, $this->categoryId);
		$this->assign('articleList', $articleList);
		$this->assign('pager', $pager);
		$this->display();
	}
}